package com.yadang.infra.api;

import com.yadang.TransactionImport;
import com.yadang.bean.TradeMsg;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "交易导入接口")
@RestController
@RequestMapping("/infra/import/msg")
public class TransactionImporterController {

    @Autowired
    private TransactionImport transactionImport;

    @PostMapping("importMsg")
    public String getMsg(String xml) {

        TradeMsg tradeMsg = new TradeMsg();
        transactionImport.transactionImport(tradeMsg);
        return "";
    }
}
